package com.aaa.custom.service.orderService;

import com.aaa.custom.dao.orderDao.OrderProductDao;
import com.aaa.entity.cart_order.kwc.OrderProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * fileName:OrderProductServiceImpl
 * description:
 * author:xxx
 * createTime:2020/1/13 9:50
 * version:1.0.0
 */
@Service
public class OrderProductServiceImpl implements OrderProductService {
    @Autowired
    private OrderProductDao orderProductDao;

    /**
     * 根据订单编号查询最新商品信息
     * @param order_sn
     * @return
     */
    @Override
    public List<OrderProduct> getProductByOrdersn(String order_sn) {
        return orderProductDao.getProductByOrdersn(order_sn);
    }
}
